package com.wcy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wcy.annotation.pageVo.PageColumn;
import com.wcy.annotation.pageVo.PageName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-27
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("resource_category")
@PageName(name = "资源分类")
public class ResourceCategory {

    @PageColumn(isId = true,prop="categoryId", label="分类ID",allowEdit = false)
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    @PageColumn(prop="categoryName", label="分类名")
    @TableField("category_name")
    private String categoryName;

    @PageColumn(prop="description", label="分类描述")
    @TableField("description")
    private String description;
}
